package com.seeyon.apps.kk.model;

import java.math.BigDecimal;

public class MemberYearDay {
	 private String memberId;
	 private String year;	
	 private String memberCode;
     private BigDecimal qichu=BigDecimal.ZERO;       //期初年假
     private BigDecimal yiyong=BigDecimal.ZERO;       //已用年假
     private BigDecimal zaitu=BigDecimal.ZERO;   ;        //在途年假
     private BigDecimal dangqian=BigDecimal.ZERO;    //当前申请
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public BigDecimal getQichu() {
		return qichu;
	}
	public void setQichu(BigDecimal qichu) {
		this.qichu = qichu;
	}
	public BigDecimal getYiyong() {
		return yiyong;
	}
	public void setYiyong(BigDecimal yiyong) {
		this.yiyong = yiyong;
	}
	public BigDecimal getZaitu() {
		return zaitu;
	}
	public void setZaitu(BigDecimal zaitu) {
		this.zaitu = zaitu;
	}
	public BigDecimal getDangqian() {
		return dangqian;
	}
	public void setDangqian(BigDecimal dangqian) {
		this.dangqian = dangqian;
	}
	 
	public boolean getIsOk(){
		return this.qichu.subtract(this.yiyong).subtract(this.zaitu).subtract(this.dangqian).intValue()>=0;		
	}
	public String getMemberCode() {
		return memberCode;
	}
	public void setMemberCode(String memberCode) {
		this.memberCode = memberCode;
	}
	 
     
     
}
